package harvard.cscie160.hw7.project;
import java.io.Serializable;
import java.rmi.RemoteException;


/**
 * This class is marshaled between RMI services
 * @author M Bret Blackford
 *
 */
public class TransactionNotification implements Serializable {
	
	private final String message;

	public String getMessage() {
		String msgHeader = "<TransactionNotification Message> \n";
		return msgHeader + message;
	}

	public TransactionNotification(String _message) throws RemoteException {
		this.message = _message;
	}
	
	/**
	 * per requirements
	 */
	public String toString(){
		return getMessage();
	}
}
